﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Icst.Leaflike.Data
{
    [Serializable]
    public partial class tree_searchResult
    {
        private Dictionary<string, string> _links;
        public Dictionary<string, string> Links { get { return DataUtil.ParseLinks(link_names, link_urls); } set { _links = value; } }
    }
    [Serializable]
    public partial class tree_similarResult
    {
        private Dictionary<string, string> _links;
        public Dictionary<string, string> Links { get { return DataUtil.ParseLinks(link_names, link_urls); } set { _links = value; } }
    }
    [Serializable]
    public partial class tree_relevantResult
    {
        private Dictionary<string, string> _links;
        public Dictionary<string, string> Links { get { return DataUtil.ParseLinks(link_names, link_urls); } set { _links = value; } }
    }
    [Serializable]
    public partial class tree_pivot { }
    [Serializable]
    public partial class tree_getinfoResult 
    {
        private Dictionary<string, List<string>> _links;
        public Dictionary<string, List<string>> Links { get { return DataUtil.ParseAllLinks(link_names, link_urls); } set { _links = value; } }
    }
    [Serializable]
    public partial class tree_search_bycategoryResult
    {
        private Dictionary<string, string> _links;
        public Dictionary<string, string> Links { get { return DataUtil.ParseLinks(link_names, link_urls); } set { _links = value; } }
    }
    [Serializable]
    public class CategoryData
    {
        public long category_id { get; set; }
        public long tree_no { get; set; }
        public string sibling_tree_name { get; set; }
        public string symbiosis { get; set; }
        public string genus_id { get; set; }
        public string family_id { get; set; }
        public string class_id { get; set; }
        public string phylum_id { get; set; }
    }
}
